package org.lzy.shop.response

class OrderInfoResponse {
    var id: Int = 0
    var createTime: String? = null
    var updateTime: String? = null
    var title: String? = null
    var payType: Int = 0
    var payTime: String? = null
    var orderNum: String? = null
    var status: Int = 0
    var price: Int = 0
    var discountPrice: Int = 0
    var address: AddressBean? = null
    var remark: String = ""
    var goodsList: MutableList<GoodsListBean>? = null

    class DiscountSourceBean {
        var type: Int = 0

        class InfoBean {
            var id: Int = 0
            var type: Int = 0
            var title: String? = null
            var amount: Int = 0
            var status: Int = 0
            var createTime: String? = null
            var updateTime: String? = null
        }
    }

    class AddressBean {
        var id: Int = 0
        var createTime: String? = null
        var updateTime: String? = null
        var contact: String? = null
        var phone: String? = null
        var province: String? = null
        var city: String? = null
        var district: String? = null
        var address: String? = null
    }

    class GoodsListBean {
        var id: Int = 0
        var createTime: String? = null
        var updateTime: String? = null
        var orderId: Int = 0
        var goodsId: Int = 0
        var price: Int = 0
        var count: Int = 0
        var remark: String? = null
        var goodsInfo: GoodsInfoBean? = null
        var spec: SpecBean? = null

        class GoodsInfoBean {
            var id: Int = 0
            var createTime: String? = null
            var updateTime: String? = null
            var typeId: Int? = null
            var title: String? = null
            var subTitle: String? = null
            var mainPic: String? = null
            var pics: MutableList<String>? = null
            var price: String? = null
            var sold: String? = null
            var content: String? = null
            var status: String? = null
            var sortNum: Int? = null
            var specs: MutableList<String>? = null
        }

        class SpecBean {
            var id: Int = 0
            var createTime: String? = null
            var updateTime: String? = null
            var goodsId: Int = 0
            var name: String= ""
            var price: String = ""
            var stock: Int = 0
            var sortNum: String? = null
            var images: MutableList<String>? = null
        }
    }
}
